const data = [{
    "title": "深入浅出TypeScript：从基础知识到类型编程",
    "desc": "Vue3 源码及开发必备基础，从基础知识到类型工具设计，从理论到实战，手把手让你从零基础成为进阶使用者。",
    "img": "https://p1-jj.byteimg.com/tos-cn-i-t2oaga2asx/gold-user-assets/2019/11/8/16e4ab5d6aff406a~tplv-t2oaga2asx-image.image"
}, {
    "title": "SVG 动画开发实战手册",
    "desc": "从0到1，学习SVG动画开发知识，快速高效完成SVG动画效果开发。",
    "img": "https://p1-jj.byteimg.com/tos-cn-i-t2oaga2asx/gold-user-assets/2019/9/26/16d6bda264ac27e4~tplv-t2oaga2asx-image.image"
}, {
    "title": "预售JavaScript 设计模式核⼼原理与应⽤实践",
    "desc": "通俗易懂的编程“套路“学。带你深入看似高深实则接地气的设计模式原理，在实际场景中内化设计模式的”道“与”术“。学会驾驭代码，而非被其奴役。",
    "img": "https://p1-jj.byteimg.com/tos-cn-i-t2oaga2asx/gold-user-assets/2019/9/16/16d382e623923d91~tplv-t2oaga2asx-image.image"
}]

const tdks = {
    home: {
        title: '主页',
        keywords: '主页关键词',
        description: '主页描述'
    },
    list: {
        title: '列表',
        keywords: '列表关键词',
        description: '列表描述'
    }
}

export const fetchData = (page) => {
    return new Promise((resolve) => {
        setTimeout(() => {
            resolve({
                status: 200,
                data: data,
                tdk: tdks[page]
            })
        }, 10);
    })
}